package org.project.single.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.project.single.pojo.po.SysDictData;
import org.project.single.pojo.ro.dict.DictDataListRo;
import org.project.single.pojo.vo.dict.DictDataListVo;

import java.util.List;

/**
 * @Entity org.project.single.pojo.po.SysDictData
 */
@Mapper
public interface SysDictDataMapper extends BaseMapper<SysDictData> {
    List<DictDataListVo> getDictDataListBack(DictDataListRo dictDataListRo);

    @Select("select count(1) from sys_dict_data where parent_code = #{parentCode} and key_code = #{keyCode}")
    int existCode(@Param("parentCode") String parentCode,@Param("keyCode") String keyCode);
}




